package com.zeta.eduservice.mapper;

import com.zeta.eduservice.entity.EduTeacher;
import com.zeta.eduservice.entity.question.EduPublishhomework;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 讲师 Mapper 接口
 * </p>
 *
 * @author zeta
 * @since 2020-07-29
 */
public interface EduTeacherMapper extends BaseMapper<EduTeacher> {
	@Select("select b.id,b.name,b.intro,b.`level` from edu_teacher_class a join edu_teacher b on b.id=a.teacher where a.classs=#{id}  and b.is_deleted=0 and a.is_deleted=0")
	List<EduTeacher> getByClassId(Page<EduTeacher> pageParam,@Param("id") String id);


}
